#ifndef USART_H
#define USART_H

#include "usart_config.h"

typedef struct USART_Device
{
    void *             USART_Base            ;
    unsigned int       USART_BaudRate        ;
    unsigned short int USART_WordLength      ;
    unsigned short int USART_StopBits        ;
    unsigned short int USART_Parity          ;
    unsigned short int USART_Mode            ;
}USART_Device;

extern USART_Device CAN;
void USART_Device_Init(void);
void _USART_Init(struct USART_Device * device);
void _USART_SendByte(struct USART_Device * device,unsigned short data);
#endif
